package cn.javasea.patterns.obv.impl;

import cn.javasea.patterns.obv.AlarmObv;
import cn.javasea.patterns.obv.entity.AlarmBo;
import cn.javasea.patterns.obv.entity.DataBo;
import org.springframework.stereotype.Component;

/**
 *@ClassName AlarmObv1
 *@Description TODO
 *@Author longxiaonan@163.com
 *@Date 2022/5/7 0007 19:06
 */
@Component
public class AlarmObv1 implements AlarmObv {
    @Override
    public void handleAlarm(AlarmBo userId) {
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("告警AlarmObv1");
    }
}
